package ca.usherbrooke.application.astar.heuristique;

import ca.usherbrooke.application.astar.Etat;
import ca.usherbrooke.application.astar.goal.GoalMove;

public class HeuristiqueMove implements Heuristique<GoalMove> {

	public HeuristiqueMove() {
	}

	@Override
	public Float estimeCoutRestant(Etat etat, GoalMove but) {
		// cout restant should be the remaining time to achieve the goal
		Float remainingDistance = etat.getLocation().getPosition()
				.getDistance(but.getDestination().getPosition());
		return remainingDistance;
	}
}
